﻿using ProjectManageSystemApi.Models;
using System.Collections.Generic;

namespace ProjectManageSystemApi.Services
{
    public interface IRoleMenuServices
    {
        IEnumerable<SystemMenuListDto> GetAllMenuByRoleId(long roleId);
        bool UpdateMenuByRoleId(RoleMenuRequest roleMenu);


        PageVo<IEnumerable<RoleDto>> GetAll(PageBo<RoleParam> pageBo);
        bool BindUserRole(long userId, List<long> roleId);
        List<SystemMenuDto> GetMenuByUserId(long userId);
        List<SystemElementDto> GetElementByUserId(long userId);
        RoleAuthResult GetRoleAuth(long roleId);
        bool UpdRoleRelation(UpdRoleAuthResponse roleAuth);
        bool UpdRoleAuth(UpdRoleAuthResponse roleAuth);
    }
}
